#pragma once

#include "Headers.h"
using namespace msclr::interop;
namespace CinePerfil 
{
	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	public ref class Last_Releases_Window : public System::Windows::Forms::Form
	{
	public:
		Last_Releases_Window(Account* a, DataBase* d)
		{
			account = a;
			database = d;			
			InitializeComponent();
			load_last_releases();
		}

	protected:
		~Last_Releases_Window()
		{
			if (components)
			{
				delete components;
			}
		}
	private: Account* account;
	private: DataBase* database;
	private: System::Windows::Forms::Button^  LRW_backButton;
	private: System::Windows::Forms::Panel^  LRW_lastReleasesPanel;
	private: System::Windows::Forms::Label^  LRW_resultsLabel;

	private: System::ComponentModel::Container ^components;
		
#pragma region Windows Form Designer generated code

		void InitializeComponent(void)
		{
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Last_Releases_Window::typeid));
			this->LRW_backButton = (gcnew System::Windows::Forms::Button());
			this->LRW_lastReleasesPanel = (gcnew System::Windows::Forms::Panel());
			this->LRW_resultsLabel = (gcnew System::Windows::Forms::Label());
			this->LRW_lastReleasesPanel->SuspendLayout();
			this->SuspendLayout();
			// 
			// LRW_backButton
			// 
			this->LRW_backButton->Cursor = System::Windows::Forms::Cursors::Hand;
			this->LRW_backButton->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 11.25F));
			this->LRW_backButton->Location = System::Drawing::Point(384, 256);
			this->LRW_backButton->Name = L"LRW_backButton";
			this->LRW_backButton->Size = System::Drawing::Size(150, 65);
			this->LRW_backButton->TabIndex = 4;
			this->LRW_backButton->Text = L"Back";
			this->LRW_backButton->UseVisualStyleBackColor = true;
			this->LRW_backButton->Click += gcnew System::EventHandler(this, &Last_Releases_Window::back_Click);
			// 
			// LRW_lastReleasesPanel
			// 
			this->LRW_lastReleasesPanel->AutoScroll = true;
			this->LRW_lastReleasesPanel->BackColor = System::Drawing::Color::Transparent;
			this->LRW_lastReleasesPanel->Controls->Add(this->LRW_resultsLabel);
			this->LRW_lastReleasesPanel->Location = System::Drawing::Point(17, 13);
			this->LRW_lastReleasesPanel->Name = L"LRW_lastReleasesPanel";
			this->LRW_lastReleasesPanel->Size = System::Drawing::Size(600, 225);
			this->LRW_lastReleasesPanel->TabIndex = 5;
			// 
			// LRW_resultsLabel
			// 
			this->LRW_resultsLabel->AutoSize = true;
			this->LRW_resultsLabel->Location = System::Drawing::Point(5, 5);
			this->LRW_resultsLabel->MinimumSize = System::Drawing::Size(590, 13);
			this->LRW_resultsLabel->Name = L"LRW_resultsLabel";
			this->LRW_resultsLabel->Size = System::Drawing::Size(590, 13);
			this->LRW_resultsLabel->TabIndex = 0;
			// 
			// Last_Releases_Window
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"$this.BackgroundImage")));
			this->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
			this->ClientSize = System::Drawing::Size(634, 337);
			this->ControlBox = false;
			this->Controls->Add(this->LRW_lastReleasesPanel);
			this->Controls->Add(this->LRW_backButton);
			this->MaximumSize = System::Drawing::Size(650, 375);
			this->MinimumSize = System::Drawing::Size(650, 375);
			this->Name = L"Last_Releases_Window";
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
			this->Text = L"CinePerfil - Last Releases";
			this->LRW_lastReleasesPanel->ResumeLayout(false);
			this->LRW_lastReleasesPanel->PerformLayout();
			this->ResumeLayout(false);

		}
#pragma endregion
	private:
		System::Void back_Click(System::Object^  sender, System::EventArgs^  e);
		System::Void load_last_releases();
		System::Void trailer_Click(System::Object^  sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^  e);
	};
}
